import React from 'react';
import { Form, Input, Button } from 'antd';

const FormLayoutDemo = () => {
  const [form] = Form.useForm();


  return (
    <Form
      layout='inline'
      form={form}
    >
      <Form.Item label="Field A">
        <Input placeholder="input placeholder" />
      </Form.Item>
      <Form.Item label="Field B">
        <Input placeholder="input placeholder" />
      </Form.Item>
      <Form.Item>
        <Button type="primary">Submit</Button>
      </Form.Item>
    </Form>
  );
};

export default FormLayoutDemo